namespace DataAssociations.Repository.Connection.ValidationRules
{
    public class NonEmptyStringValidationAttribute : AbstractValidationAttribute
    {
        public override bool IsValid(string value)
        {
            return value.Length > 0;
        }

        public override string ValidationStringError { get { return "should not be empty"; } }
    }
}